const onClickify = <T extends (...args: any) => any>(f: T, ...args: Parameters<T>) => {
    return (e: any) => {
        e.preventDefault()
        f(...args);
    }
}

export default onClickify